package com.example.gdyh;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.web.WebApplicationInitializer;

@SpringBootApplication
@MapperScan({"com.example.gdyh.dao"})
@EnableCaching
public class GdyhApplication extends SpringBootServletInitializer implements WebApplicationInitializer {
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(new Class[] { GdyhApplication.class });
    }

    public static void main(String[] args) {
        SpringApplication.run(GdyhApplication.class, args);
    }
}
